package cn.cvs.service.impl;

import cn.cvs.dao.SysUserMapper;
import cn.cvs.pojo.SysUser;
import cn.cvs.service.SysUserService;

import java.util.List;

/**
 * @Author: lh
 * @Date: 2023/5/1 14:14
 * @Package:cn.cvs.service.impl
 */

public class SysUserServiceImpl implements SysUserService {
    private SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> getList(SysUser sysUser) {
       try{
           return sysUserMapper.selectSysUserList(sysUser);
       }catch (RuntimeException e){
           e.printStackTrace();
           throw e;
       }
    }

    public SysUserMapper getSysUserMapper() {
        return sysUserMapper;
    }

    public void setSysUserMapper(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }
}
